#include "mech.h"


Mech::Mech(){
            
	miJugador = NULL; 
		
} 

void Mech::ampliaMech(){

	miJugador = new mi_mech;	
	
}

void Mech::inicializaMiJugador(int num_mun){
	
	miJugador -> municionExpulsar = num_mun;
	miJugador -> localMunicionExpulsar = new string [num_mun];
	miJugador -> slotMunicionExpulsar = new int [num_mun];
	
}

void Mech::inicializaNarcs(int num_jug){
	
	narc = new bool [num_jug]; 
	inarc = new bool [num_jug];
	
}

Mech::~Mech(){
            
	if (miJugador != NULL){
				
		delete [] miJugador->localMunicionExpulsar;
		delete [] miJugador->slotMunicionExpulsar;
				
		delete miJugador;  					
	} 
	delete [] narc;
	delete [] inarc;
} 
